<div class="main row">

    <div class="catego-title2">
        <h2 class="clearfix">
        <a href="#"><span><?php echo $page_title; ?></span></a>
        <div class="dropdown dropdown-style pull-right">
            <a id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="#"></a>
            <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                <li><a href="<?php echo $base_url . "rao-vat-group"; ?>">Vận chuyển hàng hóa</a></li>
                <li><a href="<?php echo $base_url . "rao-vat-group"; ?>">Thủ tục hải quan</a></li>
                <li><a href="<?php echo $base_url . "rao-vat-group"; ?>">Kho bãi</a></li>
                <li><a href="<?php echo $base_url . "rao-vat-group"; ?>">Đóng gói bao bì</a></li>
                <li><a href="<?php echo $base_url . "rao-vat-group"; ?>">Bảo hiểm hàng hóa</a></li>
                <li><a href="<?php echo $base_url . "rao-vat-group"; ?>">Loại khác</a></li>
            </ul>
        </div>
        
        </h2>
    </div>    

    <aside class="sidebar col-md-5 col-sm-5 col-xs-13 ">

        <div class="block-1">
            <h2 class=""><a href="javascript:void(0)" title="Vận chuyển hàng hóa">Vận chuyển hàng hóa</a></h2>
            <?php
            if (isset($aAdv_Box1[0]) && count($aAdv_Box1) > 0) {
            ?>
            <article>
                <h4>
                    <a href="<?php echo $base_url . "rao-vat/" . $aAdv_Box1[0]->url . "-" . $aAdv_Box1[0]->adv_id; ?>.html" title="​​<?php echo $aAdv_Box1[0]->title; ?>">
                        <?php echo $aAdv_Box1[0]->title; ?></a><span class="time-mobile">(<?php echo date('d/m/Y',strtotime($aAdv_Box1[0]->create_date)); ?>)</span>
                </h4>
            </article>
            <ul class="list-new2">
                <?php
                array_shift($aAdv_Box1); //next record
                foreach ($aAdv_Box1 as $key => $item):
                ?>                    
                <li>
                    <a href="<?php echo $base_url . "rao-vat/" . $item->url . "-" . $item->adv_id; ?>.html" title="<?php echo $item->title; ?>">
                        <?php echo $item->title; ?></a><span class="time-mobile">(<?php echo date('d/m/Y',strtotime($aAdv_Box1[0]->create_date)); ?>)</span>
                </li>
                <?php
                endforeach;
                ?>                
            </ul>
            <?php
            }
            ?>
        </div>                     

        <div class="block-1">
            <h2 class=""><a href="javascript:void(0)" title="Thủ tục hải quan">Thủ tục hải quan</a></h2>
            <?php
            if (isset($aAdv_Box2[0]) && count($aAdv_Box2) > 0) {
            ?>
            <article>
                <h4>
                    <a href="<?php echo $base_url . "rao-vat/" . $aAdv_Box2[0]->url . "-" . $aAdv_Box2[0]->adv_id; ?>.html" title="​​<?php echo $aAdv_Box2[0]->title; ?>">
                        <?php echo $aAdv_Box2[0]->title; ?></a><span class="time-mobile">(<?php echo date('d/m',strtotime($aAdv_Box2[0]->create_date)); ?>)</span>
                </h4>
            </article>
            <ul class="list-new2">
                <?php
                array_shift($aAdv_Box2); //next record
                foreach ($aAdv_Box2 as $key => $item):
                ?>                    
                <li>
                    <a href="<?php echo $base_url . "rao-vat/" . $item->url . "-" . $item->adv_id; ?>.html" title="<?php echo $item->title; ?>">
                        <?php echo $item->title; ?></a><span class="time-mobile">(<?php echo date('d/m',strtotime($aAdv_Box2[0]->create_date)); ?>)</span>
                </li>
                <?php
                endforeach;
                ?>                
            </ul>
            <?php
            }
            ?>
        </div>
        
        <div class="block-1">
            <h2 class=""><a href="javascript:void(0)" title="Kho bãi">Kho bãi</a></h2>
            <?php
            if (isset($aAdv_Box3[0]) && count($aAdv_Box3) > 0) {
            ?>
            <article>
                <h4>
                    <a href="<?php echo $base_url . "rao-vat/" . $aAdv_Box3[0]->url . "-" . $aAdv_Box3[0]->adv_id; ?>.html" title="​​<?php echo $aAdv_Box3[0]->title; ?>">
                        <?php echo $aAdv_Box3[0]->title; ?></a><span class="time-mobile">(<?php echo date('d/m',strtotime($aAdv_Box3[0]->create_date)); ?>)</span>
                </h4>
            </article>
            <ul class="list-new2">
                <?php
                array_shift($aAdv_Box3); //next record
                foreach ($aAdv_Box3 as $key => $item):
                ?>                    
                <li>
                    <a href="<?php echo $base_url . "rao-vat/" . $item->url . "-" . $item->adv_id; ?>.html" title="<?php echo $item->title; ?>">
                        <?php echo $item->title; ?></a><span class="time-mobile">(<?php echo date('d/m',strtotime($aAdv_Box3[0]->create_date)); ?>)</span>
                </li>
                <?php
                endforeach;
                ?>                
            </ul>
            <?php
            }
            ?>
        </div>        
        
        <div class="block-1">
            <h2 class=""><a href="javascript:void(0)" title="Đóng gói bao bì">Đóng gói bao bì</a></h2>
            <?php
            if (isset($aAdv_Box4[0]) && count($aAdv_Box4) > 0) {
            ?>
            <article>
                <h4>
                    <a href="<?php echo $base_url . "rao-vat/" . $aAdv_Box4[0]->url . "-" . $aAdv_Box4[0]->adv_id; ?>.html" title="​​<?php echo $aAdv_Box4[0]->title; ?>">
                        <?php echo $aAdv_Box4[0]->title; ?></a><span class="time-mobile">(<?php echo date('d/m',strtotime($aAdv_Box4[0]->create_date)); ?>)</span>
                </h4>
            </article>
            <ul class="list-new2">
                <?php
                array_shift($aAdv_Box4); //next record
                foreach ($aAdv_Box4 as $key => $item):
                ?>                    
                <li>
                    <a href="<?php echo $base_url . "rao-vat/" . $item->url . "-" . $item->adv_id; ?>.html" title="<?php echo $item->title; ?>">
                        <?php echo $item->title; ?></a><span class="time-mobile">(<?php echo date('d/m',strtotime($aAdv_Box4[0]->create_date)); ?>)</span>
                </li>
                <?php
                endforeach;
                ?>                
            </ul>
            <?php
            }
            ?>
        </div>                     

        <div class="block-1">
            <h2 class=""><a href="javascript:void(0)" title="Bảo hiểm hàng hóa">Bảo hiểm hàng hóa</a></h2>
            <?php
            if (isset($aAdv_Box5[0]) && count($aAdv_Box5) > 0) {
            ?>
            <article>
                <h4>
                    <a href="<?php echo $base_url . "rao-vat/" . $aAdv_Box5[0]->url . "-" . $aAdv_Box5[0]->adv_id; ?>.html" title="​​<?php echo $aAdv_Box5[0]->title; ?>">
                        <?php echo $aAdv_Box5[0]->title; ?></a><span class="time-mobile">(<?php echo date('d/m',strtotime($aAdv_Box5[0]->create_date)); ?>)</span>
                </h4>
            </article>
            <ul class="list-new2">
                <?php
                array_shift($aAdv_Box5); //next record
                foreach ($aAdv_Box5 as $key => $item):
                ?>                    
                <li>
                    <a href="<?php echo $base_url . "rao-vat/" . $item->url . "-" . $item->adv_id; ?>.html" title="<?php echo $item->title; ?>">
                        <?php echo $item->title; ?></a><span class="time-mobile">(<?php echo date('d/m',strtotime($aAdv_Box5[0]->create_date)); ?>)</span>
                </li>
                <?php
                endforeach;
                ?>                
            </ul>
            <?php
            }
            ?>
        </div>
        
        <div class="block-1">
            <h2 class=""><a href="javascript:void(0)" title="Loại khác">Loại khác</a></h2>
            <?php
            if (isset($aAdv_Box6[0]) && count($aAdv_Box6) > 0) {
            ?>
            <article>
                <h4>
                    <a href="<?php echo $base_url . "rao-vat/" . $aAdv_Box6[0]->url . "-" . $aAdv_Box6[0]->adv_id; ?>.html" title="​​<?php echo $aAdv_Box6[0]->title; ?>">
                        <?php echo $aAdv_Box6[0]->title; ?></a><span class="time-mobile">(<?php echo date('d/m',strtotime($aAdv_Box6[0]->create_date)); ?>)</span>
                </h4>
            </article>
            <ul class="list-new2">
                <?php
                array_shift($aAdv_Box6); //next record
                foreach ($aAdv_Box6 as $key => $item):
                ?>                    
                <li>
                    <a href="<?php echo $base_url . "rao-vat/" . $item->url . "-" . $item->adv_id; ?>.html" title="<?php echo $item->title; ?>">
                        <?php echo $item->title; ?></a><span class="time-mobile">(<?php echo date('d/m',strtotime($aAdv_Box6[0]->create_date)); ?>)</span>
                </li>
                <?php
                endforeach;
                ?>                
            </ul>
            <?php
            }
            ?>
        </div>
        
    </aside>
</div>

<div class="block-adv">
</div>